package com.hxzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商品口味
 * @author Administrator
 */
@Mapper
@Repository
public interface DishFlavorMapper extends BaseMapper<DishFlavor> {


    DishFlavor selectByPrimaryKey(Long id);

    /**
     * 根据商品ID查询
     * @param dishId
     * @return
     */
    List<DishFlavor> selectByDishId(Long dishId);
}